﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;

namespace Projet_Synthese
{
    public class Case
    {
        public FormeGeometrique FormeOrigne
        {
            get;
            set;
        }

        public FormeGeometrique FormePlacer
        {
            get;
            set;
        }

        public bool EstVerrouillé
        {
            get
            {
                FormeOrigne.EstGrisé = FormePlacer != null;
                return FormeOrigne.EstGrisé;
            }
        }

        public void Draw(SpriteBatch sprite)
        {
            FormeOrigne.Draw(sprite);
        }
        public Case(FormeGeometrique forme)
        {
            FormeOrigne = forme;
            FormeOrigne.EstBase = true;
            FormePlacer = null;
        }
        public void Clear()
        {
            FormeOrigne.EstBase = true;
            FormeOrigne.EstGrisé = false;
            FormeOrigne.EstSelectionné = false;
            FormePlacer = null;
        }
    }
}
